// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';

/** 股票信息 GET /api/module/SmartStockSense/Information */
export async function smartStockSenseGetStockInformation(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.SmartStockSenseGetStockInformationParams,
  options?: { [key: string]: any },
) {
  return request<API.Result1StockInformationDto>('/api/module/SmartStockSense/Information', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 预测趋势 GET /api/module/SmartStockSense/Predict/Trend/${param0} */
export async function smartStockSensePredictTrend(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.SmartStockSensePredictTrendParams,
  options?: { [key: string]: any },
) {
  const { stockCode: param0, ...queryParams } = params;
  return request<API.Result1PredictTrendDto>(
    `/api/module/SmartStockSense/Predict/Trend/${param0}`,
    {
      method: 'GET',
      params: { ...queryParams },
      ...(options || {}),
    },
  );
}

/** 查询 GET /api/module/SmartStockSense/Search */
export async function smartStockSenseSearch(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.SmartStockSenseSearchParams,
  options?: { [key: string]: any },
) {
  return request<API.Result1IEnumerable1StockOutputDto>('/api/module/SmartStockSense/Search', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 今天用户查询的股票列表 GET /api/module/SmartStockSense/Today */
export async function smartStockSenseGetTodayUserSearchStockList(options?: { [key: string]: any }) {
  return request<API.Result1IEnumerable1StockInformation>('/api/module/SmartStockSense/Today', {
    method: 'GET',
    ...(options || {}),
  });
}
